//
//  GXthirdPartyLoginService.h
//  GaoXunTravel
//
//  Created by Jackson on 16/11/23.
//  Copyright © 2016年 May. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GXthirdPartyLoginService : NSObject

/**                      检查第三方登录是否存在
 *  login_type必传:登录方式(1.帐号名密码登录2.微信登录3.QQ登录4.微博登录)wechatUnionId:微信唯一标识qqUseId:QQ唯一标识microblogIdStr:微博唯一标识如果传signIn的时候表示注册页面,不传表示绑定signIn为邀请人的验证码wechatUnionId和qqUseId:QQ和microblogIdStr标识3选一,和login_type对应{"login_type":"2","wechat_unionid":"1Wechat2","qq_useid":"","microblog_idstr":""}
 */

+(void)GXCheckThirdPartyLoginWithLoginType:(NSString *)loginType wechatUnionId:(NSString *)wechatUnionId qqUseId:(NSString *)qqUseId microblogIdStr:(NSString *)microblogIdStr callback:(void(^)(GXResponse *response))callback;

/**                         第三方登录
 *  login_type必传:登录方式(1.帐号名密码登录2.微信登录3.QQ登录4.微博登录)wechatUnionId:微信唯一标识qqUseId:QQ唯一标识microblogIdStr:微博唯一标识如果传signIn的时候表示注册页面,不传表示绑定.signIn为邀请人的验证码wechatUnionId和qqUseId:QQ和microblogIdStr标识3选一,和login_type对应{"login_type":"2","wechat_unionid":"1Wechat2","qq_useid":"","microblog_idstr":"","cellphone":"11111111114","login_name":"11111111114","login_pwd":"123456","registration":"123456","signIn":"true"}
 */
+(void)GXThirdPartyLoginWithType:(NSString *)loginType wechatUnionId:(NSString *)wechatUnionId qqUseId:(NSString *)qqUseId microblogIdStr:(NSString *)microblogIdStr cellphone:(NSString *)cellphone loginName:(NSString *)loginName loginPwd:(NSString *)loginPwd nick_name:(NSString *)nick_name registration:(NSString *)registration signIn:(NSString *)signIn callback:(void(^)(GXResponse *response))callback;

//绑定
+(void)GXThirdPartyBindingWithType:(NSString *)loginType wechatUnionId:(NSString *)wechatUnionId qqUseId:(NSString *)qqUseId microblogIdStr:(NSString *)microblogIdStr cellphone:(NSString *)cellphone loginName:(NSString *)loginName loginPwd:(NSString *)loginPwd    callback:(void(^)(GXResponse *response))callback;
@end
